import request from "@/utils/request";
/**
 * 获取下载文件列表
 * @param data
 */
export function downloadApi(data: any) {
  return request({
    url: `/v2/index/home/download/list.json`,
    method: "get",
    params: data,
  });
}
/**
 * 获取关于我们列表
 * @param data
 */
export function aboutApi(data: any) {
  return request({
    url: `/v2/index/home/about/list.json`,
    method: "get",
    params: data,
  });
}
/**
 * 获取产品详情
 * @param data
 */
export function productDetailApi(id: any) {
  return request({
    url: `/v2/index/home/product/get.json`,
    method: "get",
    params: { id },
  });
}
/**
 * 获取案例详情
 * @param data
 */
export function caseDetailApi(id: any) {
  return request({
    url: `/v2/index/home/case/get.json`,
    method: "get",
    params: { id },
  });
}
/**
 * 获取荣誉资质详情
 * @param data
 */
export function awardDetailApi(id: any) {
  return request({
    url: `/v2/index/home/award/get.json`,
    method: "get",
    params: { id },
  });
}
/**
 * 获取服务详情
 * @param data
 */
export function serviceDetailApi(id: any) {
  return request({
    url: `/v2/index/home/service/get.json`,
    method: "get",
    params: { id },
  });
}
/**
 * 获取合作伙伴详情
 * @param data
 */
export function partnerDetailApi(id: any) {
  return request({
    url: `/v2/index/home/partner/get.json`,
    method: "get",
    params: { id },
  });
}
/**
 * 获取下载文件详情
 * @param data
 */
export function downloadDetailApi(id: any) {
  return request({
    url: `/v2/index/home/download/get.json`,
    method: "get",
    params: { id },
  });
}
/**
 * 获取关于我们详情
 * @param data
 */
export function aboutDetailApi(id: any) {
  return request({
    url: `/v2/index/home/about/get.json`,
    method: "get",
    params: { id },
  });
}
